import { request } from '@/utils/request.js'

// 获取我的团队
export function apiGetSubordinateList(data = {}) {
	return request({
		url: "/distribution/subordinateList",
		data,
	})
}

// 获取佣金账单
export function apiGetBillList(data = {}) {
	return request({
		url: "/commissionBill/billList",
		data,
	})
}

// 佣金提现
export function commissionWithdrawalApply(data = {}) {
	return request({
		url: "/commissionWithdrawal/apply",
		data,
		method: "post",
	})
}

// 提交实名认证
export function userAuth(data = {}) {
	return request({
		url: "/user_auth/apply",
		data,
		method: "post",
	})
}

// 实名认证信息
export function userAuthInfo(data = {}) {
	return request({
		url: "/user_auth/info",
		data
	})
}

// 提现记录
export function withdrawalList(data = {}) {
	return request({
		url: "/commissionWithdrawal/withdrawalList",
		data
	})
}

// 兑换优惠券
export function exchangeCoupon(data = {}) {
	return request({
		url: "/commissionBill/exchangeCoupon",
		data,
		method: "post",
	})
}

// 获取分享码
export function apiGetInvitationInfoV2(data = {}) {
	return request({
		url: "/distribution/getInvitationInfoV2",
		data
	})
}

// 获取数据总览（月）
export function apiGetStatisticsMonth(data = {}) {
	return request({
		url: "/commissionBill/statisticsMonth",
		data
	})
}

// 获取数据总览（日）
export function apiGetStatisticsDay(data = {}) {
	return request({
		url: "/commissionBill/statisticsDay",
		data
	})
}


